Xbasic

: (Argument Designator)

Syntax

: ArgumentName

Arguments

ArgumentName

The name of a variable that will receive a value at run time.

Description

Use arguments when you want to specify values in your SQL statement at run-time. You can include as many arguments in your SQL as you want. At run-time, if values have not been supplied for any of the arguments, Alpha Anywhere will display a dialog box prompting for argument values.

Example:

For example, say you want to select customers in a particular city, and you want to be able to specify the name of the city at the time the data source is actually opened. You could do this with the following SQL SELECT statement:

SELECT * from Customers WHERE City = :WhatCity

:WhatCity is an argument. It will be replaced with a particular city name when the SQL data source is opened.

See Also